'use strict';

const foodAdController = require('../../app/controller/foodAd.controller.js');


module.exports = function(app){
    app.route('/foodAd/createFoodAdByMerchant')
        .post(foodAdController.createFoodAdByMerchant);

    app.route('/foodAd/getFoodAdByMerchant/:icnum')
        .get(foodAdController.getFoodAdByMerchant);

    app.route('/foodAd/getPassedFoodAd/:icnum')
        .get(foodAdController.getPassedFoodAd);

    app.route('/foodAd/getUnpassedFoodAd/:icnum')
        .get(foodAdController.getUnpassedFoodAd);
    app.route('/foodAd/foodAdUpdateStatus')
        .post(foodAdController.foodAdUpdateStatus);



};